package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.WendaAnswerContent;
import cn.wolfcode.luowowo.article.mapper.WendaAnswerContentMapper;
import cn.wolfcode.luowowo.article.service.IWendaAnswerContentService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class WendaAnswerContentServiceImpl implements IWendaAnswerContentService {

    @Autowired
    private WendaAnswerContentMapper wendaAnswerContentMapper;

    @Override
    public int insert(WendaAnswerContent wendaAnswerContent) {
        return wendaAnswerContentMapper.insert(wendaAnswerContent);
    }

    @Override
    public List<WendaAnswerContent> selectAll() {
        return wendaAnswerContentMapper.selectAll();
    }

    @Override
    public void updateByPrimaryKey(WendaAnswerContent wendaAnswerContent) {
        wendaAnswerContentMapper.updateByPrimaryKey(wendaAnswerContent);
    }

    @Override
    public WendaAnswerContent selectById(Long id) {
        return wendaAnswerContentMapper.selectById(id);
    }
}
